<?php require_once('/includes/functions.php');?>
<!DOCTYPE HTML>
<html lang="zh-CN" class="ua-windows ua-webkit">
<head>
<meta charset="UTF-8">
<meta content="" name="description">
<title>Voca.Português</title>
<link rel="stylesheet" href="/assets/stylesheets/main.css"></link>
<script type="text/javascript" src="/assets/javascripts/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="/assets/javascripts/json2.js"></script>
<script type="text/javascript" src="/assets/javascripts/jquery.validate.min.js"></script>
<script type="text/javascript" src="/assets/javascripts/voca_register_and_login.js"></script>
</head>
<body class="register_page">
<div class="register_panel">
	<img src="/assets/images/logo.jpg"/>
	<div class="title"><?php _('用户注册')?></div>
	<form id="register_form"  method="post" action="/handlers/register_handler.php">
		<div><label for="name">名号<span class="tips">(中英文均可，最少4个字符，最多14个字符，一个汉字为2个字符长度。)</span></label>
		<input type="text" id="name" name="name" required/>
		</div>
		<div><label for="email">邮箱<span class="tips">(登录时使用，需要接受激活邮件才能完成注册)</span></label>
		<input type="email" id="email" name="email" required/>
		</div>
		<div><label for="password">密码<span class="tips">(长度不能小于6个字符或大于20个字符)</span></label>
		<input type="password" id="password" name="password" minlength="6" maxlength="20"/>
		</div>
		<div><label for="password_repeat">重复密码</label>
		<input type="password" id="password_repeat" name="password_repeat"/>
		</div>
		<div><label for="code">验证码</label>
		<input type="text" id="code" name="code" class="code_input"/>
		<a href="#" title="若看不清图片，请点击图片刷新" id="refresh_code">
			<img class="code" id="code_img" src="/voca_captcha"/>
		</a>
		</div>
		<div class="submit">
			<input type="submit" value="注 册" class="btn"/>
			<span id="waiting"></span>
			<span id="response"></span>
		</div>
	</form>
</div>
</body>
</html>